Ext.BLANK_IMAGE_URL='../resources/images/default/s.gif';
Ext.onReady(function(){
    
    var treeURL='../hf/treeMenu.do?action=secondMenu';      //树节点的URL
    var topTreeURL='../hf/treeMenu.do?action=topMenu';      //树一级菜单的URL
    var topBarURL='Topbar.jsp';                             //顶部URL 
    var mainTabURL='../hf/accountManager.do?action=show';               //标签页主页面的URL
    
    //实例化Ext.ux.MainLayout
    var layout=new Ext.ux.MainLayout({
        treeURL:treeURL,
        rootNodeId:'10000',
        topTreeURL:topTreeURL,
        topBarURL:topBarURL,
        mainTabURL:mainTabURL,
        showMainEl:'showMainEl',
        collapseEl:'collapseEl',
        reloadActivateEl:'reloadActivateEl'
    });
    
    //显示布局
    layout.init();
   
   //当js加载完毕后删除loading页面并渐显内容
   setTimeout(function(){
        Ext.get('loading').remove();
        Ext.get('loading-mask').fadeOut({remove:true});
    }, 250);
    
    //Ext.get('showMain').on('click',layout.toggleCollapse,layout);
})